<template>
  <div class="demo">
    <h2 class="colorRed">学校姓名：{{name }}</h2>
    <h2>学校地址：{{address}}</h2>
  </div>
</template>

<script> 
 

export default {
    name:'School',
    data() {
        return {
            name:'北大',
            address:'北凉师范大学',
        }
    },


}
</script>

<!-- scoped 所有的样式只在当前组件的模板中有效 -->
<style scoped>
  .demo{
    background-color: skyblue;
  }
</style>
